package cn.smxy.admin.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("admin_user")
@ContentStyle(dataFormat = 49)
public class AdminUser implements Serializable {
    private static final long serialVersionUID = 8423873386829251901L;

    @TableId(type = IdType.ASSIGN_ID,value = "admin_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long adminId;

    @ExcelProperty("名称")
    private String adminName;

    @ExcelProperty("账号")
    private String adminAccount;

    @ExcelProperty("密码")
    private String adminPassword;

    @ExcelProperty("手机号")
    private String adminPhone;

    private Long createTime;

    private Integer adminRole;
}
